package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class PotentialCustomer extends BaseDomain{

   //潜在客户来源
   private DictoryDetails customerSource_id;

   //潜在客户姓名
   private String name;

   //成功概率
   private Integer successRate;

   //客户描述
   private String remark;

   //联系人
   private String linkMan;

   //联系人电话
   private String linkManTel;

   //创建人
   private Employee inputUser_id;

   //创建时间
   private Date inputTime;

   //所属租户
   private Tenant tenant_id;

   public PotentialCustomer() {

   }

   public PotentialCustomer(Long id, String name) {
      this.setId(id);
      this.name = name;
   }

   @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
   public Date getInputTime() {
      return inputTime;
   }

   @DateTimeFormat(pattern = "yyyy-MM-dd")
   public void setInputTime(Date inputTime) {
      this.inputTime = inputTime;
   }
}
